// #include<bits/stdc++.h>
// using namespace std;
#include "stdio.h"
#include"stdlib.h"

int main(){
    double a,b; //本金
    double b_juju,b_gougou; //利润
    double aa,bb; //不同资产的投资
    int i;
    // cin>>a>>b;
    scanf("%lf %lf",&a,&b);
    aa = a;
    bb = b;
    for(i = 1;;i++){
        if(bb>aa) break;
        b_gougou = 0.1*a;
        b_juju = bb*0.05;
        aa += b_gougou;
        bb += b_juju;
    }
    // cout<<i<<" "<<aa+bb;
    printf("%d %lf",i,aa+bb);
}